<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

	<xsl:template match="/">
		<tracks xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="tracks_output.xsd">
		
		<source>last.fm</source>

			<xsl:for-each select="lfm/tracks/track">

				<track>
					<name>
						<xsl:value-of select="./name"/>
					</name>
					<artistName>
						<xsl:value-of select="./artist/name"/>
					</artistName>
					<image>
						<xsl:value-of select="./image[starts-with(@size,'large')]"/>
					</image>
					<URL>
						<xsl:value-of select="./url"/>
					</URL>
				</track>

			</xsl:for-each>
		</tracks>
	</xsl:template>

</xsl:stylesheet>